/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
/**
 * Tabla de cajas de billete. Almacena todas las cajas de billetes del sistema.
 */
public class Tbv_caja_billete implements Serializable {
	public Tbv_caja_billete() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_TBV_CAJA_BILLETE_TBV_MAQUINA) {
			return ORM_tbv_maquina;
		}
		
		return null;
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_TBV_CAJA_BILLETE_TBV_TIPO_CAJA_BILLETETC_ID_TIPO_CAJA_BILLETE) {
			this.tbv_tipo_caja_billetetc_id_tipo_caja_billete = (orm.Tbv_tipo_caja_billete) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int cb_id_caja_billetes;
	
	private orm.Tbv_tipo_caja_billete tbv_tipo_caja_billetetc_id_tipo_caja_billete;
	
	private java.util.Set ORM_tbv_maquina = new java.util.HashSet();
	
	private void setCb_id_caja_billetes(int value) {
		this.cb_id_caja_billetes = value;
	}
	
	public int getCb_id_caja_billetes() {
		return cb_id_caja_billetes;
	}
	
	public int getORMID() {
		return getCb_id_caja_billetes();
	}
	
	public void setTbv_tipo_caja_billetetc_id_tipo_caja_billete(orm.Tbv_tipo_caja_billete value) {
		if (tbv_tipo_caja_billetetc_id_tipo_caja_billete != null) {
			tbv_tipo_caja_billetetc_id_tipo_caja_billete.tbv_caja_billete.remove(this);
		}
		if (value != null) {
			value.tbv_caja_billete.add(this);
		}
	}
	
	public orm.Tbv_tipo_caja_billete getTbv_tipo_caja_billetetc_id_tipo_caja_billete() {
		return tbv_tipo_caja_billetetc_id_tipo_caja_billete;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tbv_tipo_caja_billetetc_id_tipo_caja_billete(orm.Tbv_tipo_caja_billete value) {
		this.tbv_tipo_caja_billetetc_id_tipo_caja_billete = value;
	}
	
	private orm.Tbv_tipo_caja_billete getORM_Tbv_tipo_caja_billetetc_id_tipo_caja_billete() {
		return tbv_tipo_caja_billetetc_id_tipo_caja_billete;
	}
	
	private void setORM_Tbv_maquina(java.util.Set value) {
		this.ORM_tbv_maquina = value;
	}
	
	private java.util.Set getORM_Tbv_maquina() {
		return ORM_tbv_maquina;
	}
	
	public final orm.Tbv_maquinaSetCollection tbv_maquina = new orm.Tbv_maquinaSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TBV_CAJA_BILLETE_TBV_MAQUINA, orm.ORMConstants.KEY_TBV_MAQUINA_TBV_CAJA_BILLETECB_ID_CAJA_BILLETES, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getCb_id_caja_billetes());
	}
	
}
